package com.chalmers.irc2you.model;

import android.content.Context;

import com.chalmers.irc2you.R;

/**
 * The implementation of messages
 * @author printz
 *
 */
public class Message {

	private boolean hilight;
	private String channel;
	private String timeStamp;
	private String sender;
	private String message;

	/**
	 * Public contructor
	 * @param context the application context
	 * @param hilight true if the message should hilight the user
	 * @param channel the channel in which the message was written
	 * @param timeStamp the time when the message was written
	 * @param sender the user that sent the message
	 * @param message the text in the message
	 */
	public Message(boolean hilight, String channel,
			String timeStamp, String sender, String message) {
		this.hilight = hilight;
		this.channel = channel;
		this.timeStamp = timeStamp;
		this.sender = sender;
		this.message = message;
	}


	
	/**
	 * @return true if the message was a hilight
	 */
	public boolean isHilight(){
		return new Boolean(hilight);
	}
	
	/**
	 * @return returns the name of the channel in which the message was written
	 */
	public String getChannel(){
		return new String(channel);
	}
	
	/**
	 * @return returns the time that the message was written as a string
	 */
	public String getTimeStamp(){
		return new String(timeStamp);
	}
	
	/**
	 * @return returns the name of the sender that wrote the message
	 */
	public String getSender(){
		return new String(sender);
	}
	
	/**
	 * @return returns the text inside the message
	 */
	public String getMessage(){
		return new String(message);
	}
}
